]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tools/toolbox: Expose --reconfigure meson flag
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 12 Feb 2024 13:13:07 +0000 (14:13 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 12 Feb 2024 13:48:00 +0000 (13:48 +0000)
It turns out that nowadays meson updates don't always require
a full wipe of an existing build dir, but `--reconfigure` is
often enough. So let's expose that flag as well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3187>

tools/toolbox/meson-build.sh

index a8d79f1fdea07be92f7807731d0ec148fc8300aa..32ff1064369a174194eb34d28da2cf69269449d2 100755 (executable)
@@ -16,6 +16,7 @@ usage() {
 
          -Dkey=val               Option to pass to meson setup
          --dist                  Run meson dist
+         --reconfigure           Reconfigure the project
          --wipe                  Wipe build directory and reconfigure
 
          -h, --help              Display this help
@@ -50,6 +51,7 @@ TEMP=$(getopt \
   --options 't:D:h' \
   --longoptions 'toolbox:' \
   --longoptions 'dist' \
+  --longoptions 'reconfigure' \
   --longoptions 'wipe' \
   --longoptions 'help' \
   -- "$@") || die "Run $(basename $0) --help to see available options"
@@ -71,6 +73,11 @@ while true; do
       shift
     ;;
 
+    --reconfigure)
+       RECONFIGURE=--reconfigure
+       shift
+    ;;
+
     --wipe)
       WIPE=--wipe
       shift